package de.koller.faculae.engine;

import de.koller.faculae.FNode;
import de.koller.faculae.engine.planet.Planet;

public class FEngine extends FNode {
	
	public final Planet planet = new Planet();
	private long nextResurface = 1000;
	
	@Override
	protected void update( int elapsedTime ) {
		super.update( elapsedTime );
		
		if( nextResurface < froot.getGameTime() ) {
			planet.resurface();
			nextResurface = froot.getGameTime() + 2000;
		}
	}
	
}
